import request from "@/utils/request";
//获取map
export function getMap(){
    return request({
        url:`/api/v1/warehouse/goods/archives/map`,
        method:'GET',
    })
}
//添加物品
export function addItem(params){
    return request({
        url:`/api/v1/warehouse/goods/archives/creat`,
        method:'POST',
        data:params
    })
}
//修改物品贮存条件和物料标签
export function editKeyCode(params){
    return request({
        url:`/api/v1/keycode/edit`,
        method:'POST',
        data:params
    })
}
//获取物品LIST
export function getGoodsList(params){
    return request({
        url:`/api/v1/warehouse/goods/archives/find`,
        method:'POST',
        data:params
    })
}
//更改物品状态
export function updateGoodsState(params){
    return request({
        url:`/api/v1/warehouse/goods/archives/change`,
        method:'POST',
        data:params
    })
}

export function getDetail(id){
    return request({
        url:"/api/v1/warehouse/archives/find/"+id,
        method:"GET"
    })
}